import getlink from "@/api/getapi.js"
let HomeHotListM = {
    state:{
        homehotlist:""
    },
    mutations:{
        UPHOMEHOTLISTDATA(state,payload){
            state.homehotlist=payload
        }
    },
    actions:{
        LINK_HOMEHOTLIST_DATA(conhomehotlist,payload){
            // console.log(context)
            getlink(payload).then((ok)=>{
                console.log(ok.data.homehotlist,"homehotlist")
                conhomehotlist.commit("UPHOMEHOTLISTDATA",ok.data.homehotlist)
            }).catch((err)=>{
                console.log(err)
            })
        }
    }
}

export default HomeHotListM;
